package com.masterclient.app.modules.aftersale.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.eoner.baselibrary.bean.aftersale.ReturnGoodsBean;
import com.eoner.baselibrary.bean.personal.UploadImgBean;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * 作者：sean
 * 创建时间：2017/8/1 17:45
 * 功能说明：
 */

public interface ReturnGoodsContract {

    interface View extends BaseView {
        void preAfterSaleInfo(ReturnGoodsBean.DataBean dataBean);

        void applyAfterSaleSuccess();

        void onUploadSuccess(UploadImgBean.DataBean dataBean);

        void showError(String msg);

        void showError(String code, String msg);
    }

    abstract static class Presenter extends BasePresenter<View> {

        @Override
        public void onStart() {

        }

        public abstract void preAfterSale(String refund_type, String order_product_id, String update, String order_id);

        public abstract void applyAfterSale(String alipay_account,
                                            String alipay_username, String balance_amount,
                                            String bupiao_amount, String description,
                                            List<String> images,
                                            String order_product_id,
                                            String qty,
                                            String reason_id,
                                            String refund_type,
                                            String should_pay_amount,
                                            String update, String order_id, String integral_deduction,
                                            String address_id, String apply_type, Map<String, String> give_product,
                                            String refund_reason_id, String refund_type_id, String refund_shipping);

        public abstract void uploadImage(File image, String type, String filename);
    }
}